from flask_sqlalchemy import SQLAlchemy
from flask_mail import Mail
import pymysql

# 打开数据库连接
try:
    mysql = pymysql.connect(host='localhost', user='root', passwd='02200059', port=3306,database='booking')
    print('连接成功！')
except:
    print('something wrong!')
db = SQLAlchemy()
mail = Mail()
